#include <stdio.h>
#include <time.h>
int main(int num, char *arg[])
{
    int    duration = 10;
    time_t start, current = 0;
    while (1) {

        time(&start);
        if ((current - start) != 0) {
            printf("1s时间到\n");
            current = start;
        }
    }
    return 0;
}
